package com.gcu.admin.pojo.req;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2023/9/27 16:14
 * @ package_name:com.gcu.admin.pojo.req
 * @ project_name:SpringCloud-Oauth2
 * @ desc:保存权限类
 */
@Data
@Accessors(chain = true)
public class SavePermissionReq implements Serializable {

    private Long id;

    @NotBlank(message = "name 不为空")
    private String name;

    @NotNull(message = "menuId 不为空")
    private Long menuId;

    @NotBlank(message = "method 不为空")
    private String method;

    @NotBlank(message = "serviceName 不为空")
    private String serviceName;

    @NotBlank(message = "url 不为空")
    private String url;

}
